<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>index</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/bootstrap4/css/bootstrap.min.css"/>
		<link type="text/css" href="${pageContext.request.contextPath}/static/bootstrapTable/dist/bootstrap-table.min.css" rel="stylesheet"/>
    	<link type="text/css" href="${pageContext.request.contextPath}/static/css/toastr.min.css" rel="stylesheet"/>
		<script src="${pageContext.request.contextPath}/static/bootstrap4/js/jquery-3.5.1.js" type="text/javascript" charset="utf-8"></script><strong></strong>
		<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/popper.min.js"></script>
		<script src="${pageContext.request.contextPath}/static/bootstrap4/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrapTable/dist/bootstrap-table.min.js"></script>
    	<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrapTable/dist/locale/bootstrap-table-zh-CN.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/toastr.min.js"></script>
		<script type="text/javascript" src="https://cdn.bootcss.com/popper.js/1.15.0/umd/popper.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/tips.js"></script>

		<style type="text/css">
			*{
				padding: 0px;
				margin: 0px;
			}

			.toast-center-center {
				top: 34%;
				left: 50%;
				margin-top: -30px;
				margin-left: -150px;
			}

			::-webkit-scrollbar {/* 隐藏滚动条 */
				width: 0px;
				height: 4px;
			}

			.context_center{
				height: 100%;

			}

			#nav {

				width: 100%;
				height: 50px;
			}
			#context_center {

				position: absolute;
				top: 60px;
				bottom: 0px;
				left: 0px;
			}
		
		</style>
	</head>

		<body class="bg-light">
			<%--<%
			   String adminName =(String) session.getAttribute("adminName");
			   if (adminName==null||adminName.equalsIgnoreCase("")) response.sendRedirect("http://localhost:8088/equipment_fkdcn_war_exploded/");
			%>--%>

			<!-- 头部 -->
			<div id="nav" class="container-fluid p-0">
				<nav class="navbar navbar-expand-lg navbar-light bg-info">
					<a class="navbar-brand" href="#">设备管理系统</a>
					<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarImage" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
						<span class="navbar-toggler-icon"></span>
					</button>
					<c:import url="/pj/topImage"></c:import>
				</nav>
			</div>
			<!-- 内容文本 -->
			<div id="context_center" class="container-fluid ">
				<div id="center" class="row h-100">
					<div id="leftMune" class="col-12 col-md-2 bg-info">
						<div class="row">
							<div class="accordion w-100" id="ep">
								<div class="card p-3 bg-info text-white">
									<div class="card-header" id="epMgt">
										<h2 class="mb-0">
											<button class="btn btn-link btn-block text-left text-white" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
												<img src="${pageContext.request.contextPath}/static/bootstrap4/Icon/laptop-fill.svg"/>
												设备管理
											</button>
										</h2>
									</div>

									<div id="collapseOne" class="collapse" aria-labelledby="epMgt" data-parent="#ep">
										<div class="card-body bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/pageAdd')">添加设备</a>
										</div>
									</div>
									<div id="collapseOne" class="collapse" aria-labelledby="epMgt" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/tm')">设备类型</a>
										</div>
									</div>
									<div id="collapseOne" class="collapse" aria-labelledby="epMgt" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/ep/eList')">设备列表</a>
										</div>
									</div>
								</div>
								<div class=" card p-3 bg-info text-white">
									<div class="card-header" id="headingTwo">
										<h2 class="mb-0">
											<i class="bi bi-wrench"></i>
											<button class="btn btn-link btn-block text-left collapsed text-white" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
												<img src="${pageContext.request.contextPath}/static/bootstrap4/Icon/tools.svg" />
												维护管理
											</button>
										</h2>
									</div>
									<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#ep">
										<div class="card-body bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/addRep')">上报维修</a>
										</div>
									</div>

									<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#ep">
										<div class="card-body bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/repairList')">维修列表</a>
										</div>
									</div>
								</div>
								<div class="card p-3 bg-info text-white">

									<div class="card-header" id="headingThree">
										<h2 class="mb-0">

											<button class="btn btn-link btn-block text-left collapsed text-white" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
												<img src="${pageContext.request.contextPath}/static/bootstrap4/Icon/dash-square-fill.svg" />
												借还管理
											</button>

										</h2>

									</div>
									<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#"  onclick="ajaxHtml('/pj/addLendPage')">添加借出</a>
										</div>
									</div>
									<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/addRet')">归还登记</a>
										</div>
									</div>
									<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/lend')">借出列表</a>
										</div>
									</div>

									<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded" >
											<a href="#" onclick="ajaxHtml('/pj/still')">归还列表</a>
										</div>
									</div>

								</div>
								<div class="card p-3 bg-info text-white">
									<div class="card-header" id="ScrapEp">
										<h2 class="mb-0">
											<button class="btn btn-link btn-block text-left collapsed text-white" type="button" data-toggle="collapse" data-target="#sEp" aria-expanded="false" aria-controls="collapseThree">
												<img src="${pageContext.request.contextPath}/static/bootstrap4/Icon/laptop.svg" />
												报废管理
											</button>
										</h2>
									</div>
									<div id="sEp" class="collapse" aria-labelledby="ScrapEp" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" >报废统计</a>
										</div>
									</div>
									<div id="sEp" class="collapse" aria-labelledby="ScrapEp" data-parent="#ep">
										<div class="card-body  bg-light text-center border-bottom border-dark rounded">
											<a href="#" onclick="ajaxHtml('/pj/srcList')">报废列表</a>
										</div>
									</div>
								</div>
							</div>

						</div>

					</div>
					<div id="center_rigth" class="col-12 col-md-10">
						<div class="row">
							<div id="ajaxHtml" class="col-12 col-md-12">

							</div>
						</div>
					</div>
				</div>
			</div>

			</div>


	</body>
		
		
		<script type="text/javascript">
			var prefix="${pageContext.request.contextPath}";
			customTips();
			//vization
			ajaxHtml("/pj/vization");
			function ajaxHtml(url) {
				$.get(prefix+url,function(data){
					$("#ajaxHtml").html(data);
				})
			}

			function detailed(url){
				ajaxHtml(url);
			}
		
		
	</script>
		
	
</html>
